package net.xepherx.ytdl;


import java.util.ArrayList;

public class MainModel {
	
	
	private ArrayList<Video> videoList = new ArrayList<Video>();
	
	public MainModel(){
		
	}
	
	public void addVideo(Video vid){
		videoList.add(vid);
	}
	
	public Video getVideoAt(int index){
		return videoList.get(index);
	}
	
	public void removeVideoAt(int index){
		videoList.remove(index);
	}
	
	public void removeAll(){
		videoList = new ArrayList<Video>();
	}
	
	public ArrayList<Video> getVideos(){
		return videoList;
	}
}
